#include "streamingbufferedai.h"
#include "configuredialog.h"
#include <QWidget>

    AI_StreamingBufferedAi *ww = NULL;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
     AI_StreamingBufferedAi w;
    ConfigureDialog dialog;

    ww = &w;
    dialog.show();
    dialog.ConfigureDialog::ButtonOKClicked();
    int resultDialog = 1;
          //  dialog.exec();

    if (resultDialog == QDialog::Rejected)
    {
        a.exit(0);

        return 0;
    }

    else if (resultDialog == QDialog::Accepted)
    {

        w.SetConfigureParameter(dialog.GetConfigureParameter());
		w.SetConfigureDialog(&dialog);
        w.Initialize();
		w.show();
        w.AI_StreamingBufferedAi::ButtonStartClicked();

   }
    return a.exec();

}
